package org.example.spring_blog.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.spring_blog.model.UserInfo;

@Mapper
public interface UserInfoMapper {

    @Select("select * from user where delete_flag = 0 and user_name = #{username}")
    UserInfo selectByName(String username);

    @Select("select * from user where delete_flag = 0 and id = #{id}")
    UserInfo selectById(Integer id);



}
